<template>
  <div>
    <!-- 有了 下面的关注 -->
    <div class="box1">
      <div class="top">
        <span>推荐关注</span>
        <p>
          <span>查看更多</span>
          <van-icon name="arrow" />
        </p>
      </div>
      <div class="pic" v-for="(v,i) in guanzhu" :key="i" @click="fun(i)">
        <img :src="v.imgurl" alt="" />
        <p class="p1">
          <span>{{v.people}}</span>
          <span>{{v.gangwei1}}</span>
          <span>{{v.txt.txt1}}</span>
          <span>{{v.txt.txt2}}</span>
        </p>
        <p class="p2">
          <van-icon name="plus" />
          <span>关注</span>
        </p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return {
      arrid:0
    }
  },
  computed:{
    guanzhu(){
      return this.$store.state.guan
    }
  },
   methods:{
    // fun(index){
    //   this.arrid = this.$store.state.guan[index].id
    //   this.$router.push({ path: '/detail',query:{ id: this.arrid, i: index }})
    // }
  }
};
</script>

<style scoped>
.box1 {
  background: #fff;
  margin: 0.06rem 0;
}
.box1 div {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 0.10rem;
}
.box1 > .top {
  padding-top: 0.20rem;
}
.box1 > .top > span {
  margin-right: 0.80rem;
  font-size: 0.18rem;
  font-weight: bold;
}
.box1 > .top > p {
  margin-left: 0.80rem;
  font-size: 0.14rem;
  color: #999;
}
.box1 > .pic {
  height: 1.00rem;
}
.box1 > .pic > img {
  width: 0.60rem;
  height: 0.60rem;
  border-radius: 50%;
}
.box1 > .pic > .p1 {
  display: flex;
  flex-direction: column;
}
.box1 > .pic > .p1 span:nth-child(1) {
  width: 1.80rem;
  font-size: 0.14rem;
  font-weight: bold;
  color: #000;
}
.box1 > .pic > .p1 span {
  font-size: 0.13rem;
  color: #666;
}
.box1 > .pic > .p2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.70rem;
  line-height: 0.30rem;
  background: #39c0ba;
  font-size: 0.14rem;
  border-radius: 0.30rem;
}
.box1 > h2 {
  font-size: 0.16rem;
  font-weight: bold;
  margin: 0.06rem 0.14rem;
}
.box1 > .q1 {
  /* font-size: 20rem; */
  margin: 0.15rem 0.14rem;
}
.box1 > .q2 {
  /* font-size: 20rem; */
  margin: 0.15rem 0.14rem;
}
.box1 > .icon {
  display: flex;
  justify-content: space-around;
  height: 0.30rem;
}
</style>